package com.xjd.edu.user.client;

import com.xjd.edu.api.client.user.UserClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/com.xjd.edu.api.client.user.UserServiceClient")
public class UserServiceClient implements UserClient {

    @PostMapping("/users/money/deduct")
    public void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount) {
        System.out.println(pw +" feign "+amount);
    }
}
